package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.DbReceive;

/**
 * 优惠券Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-08
 */
public interface DbReceiveMapper 
{
    /**
     * 查询优惠券
     * 
     * @param id 优惠券主键
     * @return 优惠券
     */
    public DbReceive selectDbReceiveById(Long id);

    /**
     * 查询优惠券列表
     * 
     * @param dbReceive 优惠券
     * @return 优惠券集合
     */
    public List<DbReceive> selectDbReceiveList(DbReceive dbReceive);

    /**
     * 新增优惠券
     * 
     * @param dbReceive 优惠券
     * @return 结果
     */
    public int insertDbReceive(DbReceive dbReceive);

    /**
     * 修改优惠券
     * 
     * @param dbReceive 优惠券
     * @return 结果
     */
    public int updateDbReceive(DbReceive dbReceive);

    /**
     * 删除优惠券
     * 
     * @param id 优惠券主键
     * @return 结果
     */
    public int deleteDbReceiveById(Long id);

    /**
     * 批量删除优惠券
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDbReceiveByIds(Long[] ids);
}
